package cn.hdu.liang.typeinfo;

import net.mindview.util.TypeCounter;

public class Exam13 {
    public static void main(String[] args) {
        TypeCounter counter = new TypeCounter(Part.class);
        for(int i = 0; i < 20; i++) {
            Part part = Part.createRandom();
            System.out.print(part.getClass().getSimpleName() + "  ");
            counter.count(part);
        }
        System.out.println();
        System.out.println(counter);
    }
}
